<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<metahttp-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
<title><?php if(isset($SEO['title']) && !empty($SEO['title'])) { ?><?php echo $SEO['title'];?><?php } ?><?php echo $SEO['site_title'];?></title>
<meta name="keywords" content="<?php echo $SEO['keyword'];?>">
<meta name="description" content="<?php echo $SEO['description'];?>">
<link href="<?php echo CSS_PATH;?>reset.css" rel="stylesheet" type="text/css" />
<link href="<?php echo CSS_PATH;?>hzui/css/fonts.css" rel="stylesheet" type="text/css" />
<link href="<?php echo CSS_PATH;?>default_blue.css" rel="stylesheet" type="text/css" />
<link href="<?php echo CSS_PATH;?>core.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo JS_PATH;?>jquery.min.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>jquery.sgallery.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>search_common.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>core.js"></script>
</head>
<body>


<!-- <div class="body-top">
 	<div class="content">
         <div class="login lh24 blue">
            <span class="rt">
                <script type="text/javascript">
                    document.write('<iframe src="<?php echo APP_PATH;?>index.php?m=member&c=index&a=mini&forward='+encodeURIComponent(location.href)+'&siteid=<?php echo get_siteid();?>" allowTransparency="true"  width="50%" height="24"  frameborder="0" scrolling="no"></iframe>')
                </script>
            </span>
         </div>
         <div class="search">
            <div class="bd">
                <form action="<?php echo APP_PATH;?>index.php" method="get" target="_blank">
                    <input type="hidden" name="m" value="search"/>
                    <input type="hidden" name="c" value="index"/>
                    <input type="hidden" name="a" value="init"/>
                    <input type="hidden" name="typeid" value="<?php echo $typeid;?>" id="typeid"/>
                    <input type="hidden" name="siteid" value="<?php echo $siteid;?>" id="siteid"/>
                    <input type="text" class="text" name="q" id="q"/><input type="submit" value="搜 索" class="button" />
                </form>
            </div>
         </div>	
     </div>       
</div> -->


<div class="header-t" id="header-tmenu" style="display:none">
        <div class="nav-bar-t">
         	<div class="logo-t pdt_5 mgr_20"><img src="<?php echo IMG_PATH;?>mag/logo-small.png" width="72" height="42" /></div>
            <map>
            <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=b43f1459ac702900c8d44c91a5e796dd&action=category&catid=0&num=25&siteid=%24siteid&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'0','siteid'=>$siteid,'order'=>'listorder ASC','limit'=>'25',));}?>
                <ul class="nav-site-t"  id="sddm">
                    <li class="">
                    	<a href="<?php echo siteurl($siteid);?>"> 首页 </a>  
                    </li>
                    <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                        <li>
                            <?php if($r[child]==0) { ?>
                                <a href="<?php echo $r['url'];?>"> <?php echo $r['catname'];?> </a> 

                            <?php } else { ?> 
                            <!-- 展示下面所有的子栏目列表 -->
                                <a href="javascript:" onmouseover="mopen('downmenu')" onmouseout="mclosetime()"> <?php echo $r['catname'];?> <i class="icons-xiasanjiao-down" style="position:relative;top:-3px;left:5px;"></i></a>
                                <?php $header_catid=$r[catid];?>
                                <div id="downmenu" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
                                    <!-- 循环子栏目 -->
                                    <?php $n=1;if(is_array(subcat($header_catid))) foreach(subcat($header_catid) AS $v) { ?>
                                    <a href="<?php echo $v['url'];?>"><?php echo $v['catname'];?></a>
                                    <?php $n++;}unset($n); ?>
                                </div>
                            <?php } ?>
                            <span style="height: 3px; left: 50%; width: 0px; right: 0px;"></span>
                        </li>
                    <?php $n++;}unset($n); ?>
                </ul>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
            <?php echo runhook('glogal_menu')?>
            </map>
        </div> 
       <!--  <?php if($top_parentid) { ?>
        <div class="subnav">
            <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=894824ec88c3701696ad9d879ede6b1d&action=category&catid=%24top_parentid&num=15&siteid=%24siteid&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>$top_parentid,'siteid'=>$siteid,'order'=>'listorder ASC','limit'=>'15',));}?>
                <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                <a href="<?php echo $r['url'];?>"><?php echo $r['catname'];?></a><span> | </span>
                <?php $n++;}unset($n); ?>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
            <a href="<?php echo APP_PATH;?>index.php?m=video&c=index&a=album">视频专辑</a> <span> | </span>
            <?php if($modelid) { ?><a href="<?php echo APP_PATH;?>index.php?m=content&c=search&catid=<?php echo $catid;?>">搜索</a><?php } ?>
        </div>
        <?php } ?>      -->
</div>

<div class="header">
	<div class="logo"> <img src="<?php echo IMG_PATH;?>mag/logo.png" /> </div>
    <div class="banner"><script language="javascript" src="<?php echo APP_PATH;?>index.php?m=poster&c=index&a=show_poster&id=1"></script></div>
    <div class="bk3"></div>
     <div class="nav-bar">
    	<map>
    	<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=0abeb9912004474879e777dd9e6b6af6&action=category&catid=0&num=6&siteid=%24siteid&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'0','siteid'=>$siteid,'order'=>'listorder ASC','limit'=>'6',));}?>
        	<ul class="nav-site" id="sddm">
                <li class=""><a href="<?php echo siteurl($siteid);?>"> 首页 </a><span style="height: 3px; left: 50%; width: 0px; right: 0px;"></span></li>
                

                <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>


                <li>
                    <?php if($r[child]==0) { ?>
                        <a href="<?php echo $r['url'];?>"> <?php echo $r['catname'];?> <span style="height: 3px; left: 50%; width: 0px; right: 0px;"></span> </a> 

                    <?php } else { ?> 
                    <!-- 展示下面所有的子栏目列表 -->
                        <a href="javascript:" onmouseover="mopen('downme')" onmouseout="mclosetime()"> <?php echo $r['catname'];?> <i class="icons-xiasanjiao-down" style="position:relative;top:-3px;left:5px;"></i> </a>
                        <?php $header_catid=$r[catid];?>

                        <div id="downme" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
                            <!-- 循环子栏目 -->
                            <?php $n=1;if(is_array(subcat($header_catid))) foreach(subcat($header_catid) AS $v) { ?>
                            <a href="<?php echo $v['url'];?>"><?php echo $v['catname'];?></a>
                            <?php $n++;}unset($n); ?>
                        </div>


                    <?php } ?>
                    
                </li>


               <!--  <li>
                    <a href="<?php echo $r['url'];?>"> <?php echo $r['catname'];?> </a> 
                    <span style="height: 3px; left: 50%; width: 0px; right: 0px;"></span>
                </li> -->
                <?php $n++;}unset($n); ?>
            </ul>
        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
		<?php echo runhook('glogal_menu')?>
        </map>
    </div> 
    
	<!-- <?php if($top_parentid) { ?>
    <div class="subnav">
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=894824ec88c3701696ad9d879ede6b1d&action=category&catid=%24top_parentid&num=15&siteid=%24siteid&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>$top_parentid,'siteid'=>$siteid,'order'=>'listorder ASC','limit'=>'15',));}?>
			<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
			<a href="<?php echo $r['url'];?>"><?php echo $r['catname'];?></a><span> | </span>
			<?php $n++;}unset($n); ?>
        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
		<a href="<?php echo APP_PATH;?>index.php?m=video&c=index&a=album">视频专辑</a> <span> | </span>
    	<?php if($modelid) { ?><a href="<?php echo APP_PATH;?>index.php?m=content&c=search&catid=<?php echo $catid;?>">搜索</a><?php } ?>
    </div>
	<?php } ?> -->
</div>

</body>

<script>

// 头部滚动效果
$(function () {     
    bindCallhead();
});
function bindCallhead() {
    var lastRmenuStatus=false;
    // $('#online-menu .btn-top').click(function(){
    //     $("html, body").animate({
    //         "scroll-top":0
    //     },"fast");
    // });
    $(window).scroll(function(){
        //bug
        var _top=$(window).scrollTop();
        if(_top>200){
            $("#header-tmenu").data("expanded",true);
        }else{
            $("#header-tmenu").data("expanded",false);
        }
        if($("#header-tmenu").data("expanded")!=lastRmenuStatus){
            lastRmenuStatus=$("#header-tmenu").data("expanded");
            console.log(lastRmenuStatus);
            if(lastRmenuStatus){
                //$("#online-menu .btn-top").slideDown();
                $("#header-tmenu").css("display", "block");
            }else{
                //$("#online-menu .btn-top").slideUp();
                $("#header-tmenu").css("display", "none");
            }
        }
    });
}



//header_nav   导航下划线
	$('.nav-site li').hover(function(){
		$('span',this).stop().css('height','3px');
		$('span',this).animate({
			left:'0',
			width:'100%',
			right:'0'
		},200);
	},function(){
		$('span',this).stop().animate({
			left:'50%',
			width:'0'
		},200);
	});	
</script>


